package PrjDBConf

import "dgo/MyProj/PrjHttpUtils"

type IAppConfService interface {
	CheckEnv() error
	GetConf(strAppID, strTypeID, strConfAsType string, newFlag int) (error, interface{})
	GetConfByID(strID, strTypeID string) (error, []byte)
	ConfUpdate(appid, typeid, conf string) error
}

var (
	AppConfService IAppConfService = nil

	OnGetConf func(httpR *PrjHttpUtils.HttpRec, strAppID, strTypeID, strConfAsType string, newFlag int, isBreak *bool) (error, interface{}) = nil

	OnConfUpdate func(httpR *PrjHttpUtils.HttpRec, appid, typeid, conf string, isBreak *bool) error
	// 更新配置时回调
	ConfUpdateCallBack func(appid, typeid, conf string)
)
